package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class SpotConfigurationAttribute extends Model {
	@Column(nullable=false)
	private String name;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="spotconfiguration_id", insertable=false, updatable=false)
	private SpotConfiguration spotConfiguration;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public SpotConfiguration getSpotConfiguration() {
		return spotConfiguration;
	}

	public void setSpotConfiguration(SpotConfiguration spotConfiguration) {
		this.spotConfiguration = spotConfiguration;
	}
}
